<script>
	import {mapMutations} from 'vuex'
	export default {
		created() {
			// 获取屏幕高度赋值
			uni.getSystemInfo({
				success: (res)=> {  
					console.log(res,"res") 
					let navHeight = res.statusBarHeight;
					let contentHeight = res.windowHeight - navHeight; //页面的总高度 减去 导航栏的高度
					console.log(res.windowHeight, contentHeight,navHeight,"navHeight" )
					this.$store.commit('setContentHeight', contentHeight)
					// this.Wheight = res.windowHeight
					// ...mapMutations(['setContentHeight']) 
				}
			})
		},
		onLaunch: function() {
			wx.showTabBarRedDot({ index: 1, text: '1' })
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style>
	/*每个页面公共css */
	*{
		/* box-sizing: border-box; */
	}
	.uni-body{
		height: auto;
	}
</style>
